<?php 

    include './header.php';

    include './public_banner.php';

    $case_type = select_data('nnd_case_type');
    if(isset($_GET['case-type']) && !empty($_GET['case-type'])){
        $type = $_GET['case-type'];
    }else{
        $type = 1;
    }
    $condition = "INNER JOIN nnd_case_type on case_type = case_type_id WHERE case_type_id = $type";
    $cases = select_data('nnd_cases', '*', $condition);
    // pre($cases);

    include './views/show.html';

    include './footer.php';